package com.rpc.entity;

public enum ResponseCode {
    SUCCESS(200,"成功"),
    FAIL(500,"失败"),
    NO_FOUND_METHOD(500,"未找到指定方法"),
    NO_FOUND_CLASS(500,"未找到指定类");


    private final int code;
    private final String message;

    ResponseCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
